<%--
  Created by IntelliJ IDEA.
  User: PromiseT
  Date: 2022/5/27
  Time: 11:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.css">
    <script src="/static/bootstrap/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
    <script src="/static/bootstrap/js/jquery-3.3.1.js"></script>
    <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css"/>
</head>
<body>
<form action="/StudentServlet/updateStu" method="post" style="width: 500px">
    <div class="form-group">
        <label for="exampleInputText">学号</label>
        <span class="label label-default">${stu.stuID}</span>
        <input name="stuID" value="${stu.stuID}" type="hidden" class="form-control" id="exampleInputText" >
    </div>
    <div class="form-group">
        <label for="exampleInputText1">姓名</label>
        <input  name="name" value="${stu.name}" type="text" class="form-control" id="exampleInputText1" placeholder="请输入更改后的姓名">
    </div>
    <div class="form-group">
        <label for="exampleInputText2">年龄</label>
        <input  name="age" value="${stu.age}"  type="text" class="form-control" id="exampleInputText2" placeholder="请输入更改后的年龄">
    </div>
    <div class="form-group">
        <label for="exampleInputText3">年级</label>
        <input  name="grade" value="${stu.grade}" type="text" class="form-control" id="exampleInputText3" placeholder="请输入更改后的年级">
    </div>
    <div class="radio">
        <label>
            <input type="radio" name="male" value="男" ${stu.male=='男'?'checked':''}>
            男
        </label>
    </div>
    <div class="radio">
        <label>
            <input type="radio" name="male" value="女" ${stu.male=='女'?'checked':''}>
            女
        </label>
    </div>
    <br />
    <select  name="state" value="${stu.state}" class="form-control">
        <option value="正常">正常</option>
        <option value="请假">请假</option>
        <option value="旷课">旷课</option>
    </select>
    <br />
    <div style="text-align: center">
        <button type="submit" class="btn btn-default" style="width: 50%;background-color: rgba(178,219,161,0.2);">更改</button>
    </div>

</form>
</body>
</html>
